package com.itheima;

import com.example.EnableHeaderConfig;
import com.example.HeaderConfig;
import com.example.MyImportSelector;
import com.example.TokenParser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

//自动配置实现方案一：ComponentScan
//@ComponentScan(basePackages = {"com.example","com.itheima"})

//自动配置实现方案二：@Import
//@Import(TokenParser.class) //普通类
//@Import(HeaderConfig.class)  //配置类
//@Import(MyImportSelector.class) //批量导入
@EnableHeaderConfig
@SpringBootApplication
public class SpringbootWebConfigApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootWebConfigApplication.class, args);
    }

}
